php artisan serveが起動できない
php artisan serveが起動できない
問題
code:cmd
php artisan serve
PHP Warning: require(C:\Users\ryo\Desktop\laravelapp/vendor/autoload.php): failed to open stream: No such file or directory in C:\Users\ryo\Desktop\laravelapp\artisan on line 18
PHP Fatal error: require(): Failed opening required 'C:\Users\ryo\Desktop\laravelapp/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\Users\ryo\Desktop\laravelapp\artisan on line 18
composer install
No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- league/flysystem1.1.0, ..., 1.x-dev require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension. - Root composer.json requires laravel/framework ^8.12 -> satisfiable by laravel/frameworkv8.12.0, ..., 8.x-dev. To enable extensions, verify that they are enabled in your .ini files:
- C:\tools\php-7.4.13-Win32-vc15-x64\php.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
解決
php.iniに追記する
code:php
extension=php_fileinfo.dll
refs